package com.spring.xiatian.order.core;

import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

/**
 *
 * PageRequest 已经实现了分页，如果有特殊需求，可以实现 Pageable
 * 接口 重写分页逻辑
 * 这里就不多赘述...
 * Created by Created by xiaoxia on 2017/10/30 0030 13:37.
 */
public class PageList<T> implements Pageable{

    private T entity;

    private int number;

    private int pageSize;

    private int offset;

    private int sort;

    @Override
    public int getPageNumber() {
        return 0;
    }

    @Override
    public int getPageSize() {
        return 0;
    }

    @Override
    public int getOffset() {
        return 0;
    }

    @Override
    public Sort getSort() {
        return null;
    }

    @Override
    public Pageable next() {
        return null;
    }

    @Override
    public Pageable previousOrFirst() {
        return null;
    }

    @Override
    public Pageable first() {
        return null;
    }

    @Override
    public boolean hasPrevious() {
        return false;
    }
}
